package cn.acheng1314.springboot2.entity

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableLogic
import com.baomidou.mybatisplus.extension.activerecord.Model
import java.time.LocalDateTime

class SysMenu : Model<SysMenu>() {
    /**
     * 菜单ID
     */
    @TableId(value = "menu_id", type = IdType.INPUT)
    private var menuId: Int? = null
    /**
     * 菜单名称
     */
    @TableField(value = "name")
    private var name: String? = null
    /**
     * 菜单权限标识
     */
    @TableField(value = "permission")
    private var permission: String? = null
    /**
     * 父菜单ID
     */
    @TableField(value = "parent_id")
    private var parentId: Int? = null
    /**
     * 图标
     */
    @TableField(value = "icon")
    private var icon: String? = null
    /**
     * VUE页面
     */
    @TableField(value = "component")
    private var component: String? = null
    /**
     * 排序值
     */
    @TableField(value = "sort")
    private var sort: Int? = null
    /**
     * 菜单类型 （0菜单 1按钮）
     */
    @TableField(value = "type")
    private var type: String? = null
    /**
     * 路由缓冲
     */
    @TableField(value = "keep_alive")
    private var keepAlive: String? = null
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private var createTime: LocalDateTime? = null
    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private var updateTime: LocalDateTime? = null
    /**
     * 0--正常 1--删除
     */
    @TableField(value = "is_use")
    private var isUse: Boolean? = null
    /**
     * 前端URL
     */
    @TableField(value = "path")
    private var path: String? = null

    companion object {
        private const val serialVersionUID = 1L
    }
}